package org.gdpu.Service;

import org.gdpu.base.DAO;
import org.gdpu.model.Dormitory;
import org.gdpu.model.User;

import java.util.List;

/**
 * Created by HEWI2 on 2/17/14.
 */
public interface DormitoryService extends DAO {


    /**
     * 根据宿舍号和校区查找宿舍
     * @param dormitory 宿舍
     * @param campusName 校区
     * @return
     */
    public Dormitory findById(String dormitory,String campusName);

    public List<Dormitory> findByCampus(String campusName);

    /**
     * 根据校区查找宿舍楼
     * @param campus
     * @return
     */
    public List<String> findBuilding(String campus);
}